-- GENERATED SPELL FOR [Grizzle Halfmane] --


function spell0_347(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_347', 539, 1)
end

function spell1_347(pUnit, Event) --@Frightening Shout,n/a--
pUnit:FullCastSpellOnTarget(19134,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_347', 6268, 1)
end

function spell2_347(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(16856,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_347', 5303, 1)
end

function spell3_347(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(15589,pUnit)
pUnit:RegisterEvent('Sorts_347', 620, 1)
end

function spell4_347(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(13736,pUnit)
pUnit:RegisterEvent('Sorts_347', 2000, 1)
end

function Sorts_347(pUnit, Event)
local choix_sorts_347 = math.random(0, 4)
if choix_sorts_347 == 0 then
pUnit:RegisterEvent('spell0_347', 1, 1)
end
if choix_sorts_347 == 1 then
pUnit:RegisterEvent('spell1_347', 1, 1)
end
if choix_sorts_347 == 2 then
pUnit:RegisterEvent('spell2_347', 1, 1)
end
if choix_sorts_347 == 3 then
pUnit:RegisterEvent('spell3_347', 1, 1)
end
if choix_sorts_347 == 4 then
pUnit:RegisterEvent('spell4_347', 1, 1)
end
end

function mob347_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_347', math.random(1500, 3000), 1)
end

function mob347_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob347_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob347_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(347, 1, 'mob347_Action')
RegisterUnitEvent(347, 2, 'mob347_Leave')
RegisterUnitEvent(347, 3, 'mob347_Kill')
RegisterUnitEvent(347, 4, 'mob347_Die')
